﻿
using System;

namespace QLab.IO.Dialogs
{
  public class ProjectOpenFileDialog : CustomOpenFileDialog
  {

    protected override void Initialize()
    {
      base.Initialize();

      string extension = Controllers.SolutionExplorer.SolutionExplorerItemBase.GetDefaultFileExtension(
        Controllers.SolutionExplorer.SolutionExplorerItemType.Solution);

      _dialog.Title = "Open QLab Solution";
      _dialog.Filter = String.Format("Project Files (*{0})|*{1}", extension, extension);
    }

  }
}
